package com.crm.log.service;

import java.util.List;
import java.util.Map;

import com.crm.log.domain.UserBusinessLog;

/**
 * 日志报表Service接口
 * 
 * @author ruoyi
 * @date 2024-02-12
 */
public interface IUserBusinessLogService 
{
    /**
     * 查询日志报表
     * 
     * @param id 日志报表主键
     * @return 日志报表
     */
    public UserBusinessLog selectUserBusinessLogById(Long id);

    /**
     * 查询日志报表列表
     * 
     * @param userBusinessLog 日志报表
     * @return 日志报表集合
     */
    public List<UserBusinessLog> selectUserBusinessLogList(UserBusinessLog userBusinessLog);

    /**
     * 新增日志报表
     * 
     * @param userBusinessLog 日志报表
     * @return 结果
     */
    public int insertUserBusinessLog(UserBusinessLog userBusinessLog);

    /**
     * 修改日志报表
     * 
     * @param userBusinessLog 日志报表
     * @return 结果
     */
    public int updateUserBusinessLog(UserBusinessLog userBusinessLog);

    /**
     * 批量删除日志报表
     * 
     * @param ids 需要删除的日志报表主键集合
     * @return 结果
     */
    public int deleteUserBusinessLogByIds(Long[] ids);

    /**
     * 删除日志报表信息
     * 
     * @param id 日志报表主键
     * @return 结果
     */
    public int deleteUserBusinessLogById(Long id);
    /**
     * @param type            0-查询 1-导出
     * @param userBusinessLog
     * @return
     */
    public Map<String, Object> getUserBusinessLogs(int type, UserBusinessLog userBusinessLog);
    /**
     * 个人汇总排行
     * 20200803: 新增  --
     * @return
     */
    public Map<String,Object> getUserBusinessSumLogs(int type, UserBusinessLog userBusinessLog) throws Exception;
    /**
     * 部门排行
     * 20200725: 新增  --
     * @return
     */
    public Map<String, Object> getOrgBusinessLogs(int type, String query_type, UserBusinessLog userBusinessLog);
}
